home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Sharing Fun! I Know My Savior Lives / Sunday Savers: Sharing Fun! I Know My Savior Lives.iso / mac / Xtras / PrintOMatic MX 1.7.3 / PrintOMatic MX (OS X) / -PrintOMatic MX Demo.dir / 00031.txt < prev    next >
Encoding:
Text File  |  2004-04-07  |  1.6 KB  |  27 lines

  1. Page Setup and Job Setup Dialogs
  2.  
  3. The following commands are used to display the Page Setup and the print Job Setup dialog boxes for the user:
  4.  
  5.     doPageSetup    Presents the Page Setup dialog
  6.     doJobSetup    Presents the Print Job Setup dialog
  7.  
  8. Calling these routines is optional; if they are not called, the document or print job will be set up with default values.doPageSetup
  9. Syntax:    doPageSetup(document)
  10.  
  11. Returns: TRUE if the user clicks "OK" in the page setup dialog
  12.         FALSE if the user clicks "Cancel" in the page setup dialog
  13.  
  14. The doPageSetup function displays the Page Setup dialog for a document. This function must be called on an empty document, before any elements are added to it. doPageSetup returns TRUE if the user clicks the "OK" button in the dialog box, or FALSE if the user clicks "Cancel". You can call the getLandscapeMode routine before and after doPageSetup to determine if the user changed the page orientation in the Page Setup dialog box.doJobSetup
  15.  
  16. Syntax:    doJobSetup(document)
  17.  
  18. Returns: TRUE if the user clicks "Print" in the job setup dialog
  19.         FALSE if the user clicks "Cancel" in the job setup dialog
  20.  
  21. The doJobSetup function displays the job setup dialog for a document object. This function should be called right before printing. If doJobSetup returns TRUE, the user clicked the "Print" button, and printing should proceed. If doJobSetup returns FALSE, the user clicked "Cancel", and you should not print the document. This function cannot be called on an empty document.
  22.  
  23. Example:
  24.  
  25. This is the recommended way of calling doJobSetup right before printing a PrintOMatic document:
  26.  
  27.     if doJobSetup (doc) = TRUE then print doc